Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch redirect page language #876

Merged

Conversation

adrienne-deriv
Copy link
Contributor

Changes:

  • ...

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

Copy link

Preview Link: https://pr-876.smarttrader-preview.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@adrienne-deriv adrienne-deriv marked this pull request as ready for review December 10, 2024 06:21
@adrienne-deriv adrienne-deriv requested a review from a team as a code owner December 10, 2024 06:21
@@ -656,9 +656,10 @@ const Header = (() => {
const isOAuth2Enabled = AuthClient.isOAuth2Enabled();

if (isOAuth2Enabled) {
const redirectCallbackUri = `${window.location.origin}/en/callback`;
const currentLanguage = Language.get();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should already have default fallback to EN in the function:
Screenshot 2024-12-10 at 2 45 38 PM

const postLoginRedirectUri = window.location.origin;
const postLogoutRedirectUri = `${window.location.origin}/en/trading`;
const postLogoutRedirectUri = `${window.location.origin}/${currentLanguage}/trading`;
// Test commit
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested for ru and cn_tw language:

Screen.Recording.2024-12-10.at.2.40.50.PM.mov
Screen.Recording.2024-12-10.at.2.42.33.PM.mov

@ahmadtaimoor-deriv ahmadtaimoor-deriv merged commit 5aab624 into deriv-com:master Dec 10, 2024
4 checks passed
matin-deriv added a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants